xen/cpupool: make per-cpupool sched-gran hypfs node writable
authorJuergen Gross <jgross@suse.com>
Fri, 22 Jan 2021 11:15:21 +0000 (12:15 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 22 Jan 2021 11:15:21 +0000 (12:15 +0100)
commitd7356c57ec71b5d5caeac0e3ce23ea14494d060f
tree8b83958dabfad46290ce39b72da41b54d461782f
parentd6275b9a6452747e0f7e95828c57f57251cf0f06
xen/cpupool: make per-cpupool sched-gran hypfs node writable

Make /cpupool/<id>/sched-gran in hypfs writable. This will enable per
cpupool selectable scheduling granularity.

Writing this node is allowed only with no cpu assigned to the cpupool.
Allowed are values "cpu", "core" and "socket".

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
docs/misc/hypfs-paths.pandoc
xen/common/sched/cpupool.c